﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<UnfriendlyFire.Models.NewUser>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    SignUp
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <table id="signUp">
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Email) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.Email) %>
                    <%: Html.ValidationMessageFor(model => model.Email) %>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.Password) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.PasswordFor(model => model.Password) %>
                    <%: Html.ValidationMessageFor(model => model.Password) %>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.PasswordQuestion) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.DropDownListFor(model => model.PasswordQuestion, Model.PossiblePasswordQuestions) %>
                    <%: Html.ValidationMessageFor(model => model.PasswordQuestion) %>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.PasswordAnswer) %>
                </div>
            </td>
            <td>
                <div class="editor-field">
                    <%: Html.TextBoxFor(model => model.PasswordAnswer)%>
                    <%: Html.ValidationMessageFor(model => model.PasswordAnswer)%>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                <div class="editor-field">
                    <%: Html.CheckBoxFor(model => model.StaySignedIn) %>
                </div>
            </td>
            <td>
                <div class="editor-label">
                    <%: Html.LabelFor(model => model.StaySignedIn) %>
                </div>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <input type="submit" value="Sign up" />
            </td>
        </tr>
    </table>
    <% } %>
</asp:Content>
